//获取应用实例
const app = getApp();

Page({
  data: {
    info:'',
    // 组件所需的参数
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '选择工单类型', //导航栏 中间的标题
    },
    // 此页面 页面内容距最顶部的距离
    height: app.globalData.height * 2 + 20,
  },
  onLoad() {
    let that = this;
    let url = app.globalData.URL + 'system/dict/data/dictType/fac_repairs_fault_type';
          let data = {};
          app.wxRequest('GET', url, data, (res) => {
            console.log(res)
            that.setData({
              info:res.data
            })
          }, (err) => {
            console.log(err.errMsg)
          })
  },
  gofill_question:function(e){
    console.log(e)
    let code = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '/modelA/pages/equipment_repair/fill_question/fill_question?faultTypeCode='+code,
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  }
})
